package vip.xiaonuo.sys.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;
import vip.xiaonuo.sys.core.cache.PublicKeyCache;

/**
 * redis配置注入
 *
 * @author wangjinqian
 * @date 2021/1/30 14:16
 */
@Configuration
public class RedisCacheConfig {
    /**
     * 前端公钥缓存配置
     * @param redisTemplate
     * @return
     */
    @Bean
    public PublicKeyCache publicKeyCache(RedisTemplate<String, String> redisTemplate){
        return new PublicKeyCache(redisTemplate);
    }
}
